/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.powerhua.favorite.web;

import com.powerhua.core.web.IServletAction;
import com.powerhua.core.utils.FileContentUtils;
import com.powerhua.core.utils.WebPathUtils;
import javax.servlet.http.HttpServletRequest;

/**
 *
 * @author Brian
 */
public class FavoriteAction implements IServletAction {

    @Override
    public String doAction(HttpServletRequest request) {
        // template path
        String sep = System.getProperty("file.separator");
        String templatePath = WebPathUtils.getWebInfPath() + "template" + sep;
        String templateFile = templatePath + "favorite" + sep + "favorite_list_table.xml";

        // get text file string
        String result = FileContentUtils.getTextFileString(templateFile, "UTF-8");

        // return
        return result;
    }
}
